import request from '@/utils/request'

// 查询服务方接口配置列表
export function listExcPort(query) {
  return request({
    url: '/pm/excPort/list',
    method: 'get',
    params: query
  })
}

// 查询服务方接口配置详细
export function getExcPort(id) {
  return request({
    url: '/pm/excPort/' + id,
    method: 'get'
  })
}

// 新增服务方接口配置
export function addExcPort(data) {
  return request({
    url: '/pm/excPort',
    method: 'post',
    data: data
  })
}

// 修改服务方接口配置
export function updateExcPort(data) {
  return request({
    url: '/pm/excPort',
    method: 'put',
    data: data
  })
}

// 删除服务方接口配置
export function delExcPort(id) {
  return request({
    url: '/pm/excPort/' + id,
    method: 'delete'
  })
}
